package com.huiying.service;



import com.huiying.entity.dto.CommentDTO;
import com.huiying.entity.dto.CommentPageDTO;
import com.huiying.entity.entity.Tag;
import com.huiying.entity.result.PageResult;

import java.util.List;

/**
 * @Author: lsh
 * @Date: 2024/12/03/21:29
 * @Description:
 */
public interface CommonService {
    /**
     *  查询标签列表
     * @return: java.util.List<com.fx.entity.Tag>
     */
    List<Tag> getTags();

    boolean like(Long contentId, String contentType);

    boolean unLike(Long contentId, String contentType);

    long countLikes(Long demandId, String demand);

    Boolean collect(Long contentId, String contentType);

    Boolean unCollect(Long contentId, String contentType);

    void addComment(CommentDTO commentDTO);

    PageResult pageQuery(CommentPageDTO commentPageDTO);

    PageResult getViewList(Integer page, Integer pageSize, String contentType);

    PageResult getCollectList(Integer page, Integer pageSize, String contentType);
}
